﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DBControl;

namespace SellerProject.testfolder
{
    public partial class testMarketing : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            Marketing mk = new Marketing(Session["sessionKey"].ToString());

            Groups mygrps = mk.getTaobaoGroups();

            if (mygrps.Count != 0)
            {
                for (int i = 0; i < mygrps.Count; i++)
                {
                    Response.Write(mygrps[0].GroupName);
                    Response.Write("</br>");
                }
            }
            else { Response.Write("Nothing!"); }
        }
    }
}